﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Data;

namespace ESC.Designer.Resources
{
    public class BeiHuoTaskChangeColorConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (System.Convert.ToBoolean(value.ToString()))
            {
                //return System.Windows.Media.Color.FromArgb(0x50, 0xff, 0x00, 0x00);
                return "#50FF0000";
            }
            else
            {
                //return System.Windows.Media.Color.FromArgb(0x50, 0x66, 0xCC, 0xFF);
                return "#5066CCFF";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
